<script>
export default {
  name: 'Breadcrumb',
  functional: true,
  render: (h, context) => {
    console.log('context', context.slots().default)
    const vnodeArr = []
    context.slots().default.forEach((item, index, arr) => {
      vnodeArr.push(item)
      if (arr.length - 1 !== index) {
        vnodeArr.push(h('i', { class: 'el-icon-arrow-right' }))
      }
    })
    return h('span', {}, vnodeArr)
  }
}
</script>
